Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove existing selects from relation #743

Merged
merged 1 commit into from
Jul 1, 2016
Merged

Conversation

emerson-h
Copy link

If there are existing, non-standard selects on a relation, the primary key sub-select will fail because it will include them as well as the primary key, which results in too many columns being present in the results.

This change removes any existing select clauses before applying the selection on the primary key.

If there are existing, non-standard selects on a relation, the primary key sub-select will fail because it will include them as well as the primary key, which results in too many columns being present in the results.

This change removes any existing select clauses before applying the selection on the primary key.
@emerson-h
Copy link
Author

This fixes #744

@seuros seuros merged commit bc841d9 into mbleigh:master Jul 1, 2016
tekniklr pushed a commit to tekniklr/acts-as-taggable-on that referenced this pull request Mar 19, 2021
Remove existing selects from relation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants